from  core.deviceAdapter.baseAdapter import Proxy
from core import deviceManager
class BasicAdapterProxy(Proxy):
    def view_get(self):
        return {'name':'Basic Adapter %s'.format(self.uid),'detail':'Can not get device adapter','icon':None}
class BasicAdapter:
    def register(self,link,info):
        proxy = BasicAdapterProxy(link=link,adapter=self,info=info)
        deviceManager.register(proxy.uid,proxy,name='Basic device')